<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      Liba52-0.7.4
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;42.&nbsp;Multimedia Libraries and Drivers
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="id3lib.html" title="id3lib-3.8.3">Prev</a>
          <p>
            id3lib-3.8.3
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libao.html" title="Libao-1.2.0">Next</a>
          <p>
            Libao-1.2.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="libdriv.html" title=
          "Chapter&nbsp;42.&nbsp;Multimedia Libraries and Drivers">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="liba52" name="liba52"></a>Liba52-0.7.4
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Liba52
        </h2>
        <p>
          <span class="application">liba52</span> is a free library for
          decoding ATSC A/52 (also known as AC-3) streams. The A/52 standard
          is used in a variety of applications, including digital television
          and DVD.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz">http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: caa9f5bc44232dc8aeea773fea56be80
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 236 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 2.5 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: less than 0.1 SBU
              </p>
            </li>
          </ul>
        </div>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="ulink" href="http://cr.yp.to/djbfft.html">djbfft</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/liba52">http://wiki.linuxfromscratch.org/blfs/wiki/liba52</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Liba52
        </h2>
        <p>
          Install <span class="application">liba52</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr \
            --mandir=/usr/share/man \
            --enable-shared \
            --disable-static \
            CFLAGS="-g -O2 $([ $(uname -m) = x86_64 ] &amp;&amp; echo -fPIC)" &amp;&amp;
make</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>make
          check</strong></span>.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install &amp;&amp;
cp liba52/a52_internal.h /usr/include/a52dec &amp;&amp;
install -v -m644 -D doc/liba52.txt \
    /usr/share/doc/liba52-0.7.4/liba52.txt</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>CFLAGS="-g -O2 ...</code></em>: This
          sets CFLAGS to -g -O2 (which is the default) but then on x86_64
          adds -fPIC. This is needed to compile <span class=
          "application">liba52</span> on x86_64.
        </p>
        <p>
          <em class="parameter"><code>--disable-static</code></em>: This
          switch prevents installation of static versions of the libraries.
        </p>
        <p>
          <span class="command"><strong>cp liba52/a52_internal.h
          ...</strong></span>: Copying this header file into
          /usr/include/a52dec allows some other programs (such as
          <span class="application">xine-lib</span>) to compile and link
          against a system installed <span class="application">liba52</span>.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">a52dec and extract_a52</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Library:</strong>
              <span class="segbody">liba52.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/include/a52dec and
              /usr/share/doc/liba52-0.7.4</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="a52dec" name="a52dec"></a><span class=
                    "term"><span class=
                    "command"><strong>a52dec</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    plays ATSC A/52 audio streams.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="extract_a52" name="extract_a52"></a><span class=
                    "term"><span class=
                    "command"><strong>extract_a52</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    extracts ATSC A/52 audio from an MPEG stream.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="liba52-lib" name="liba52-lib"></a><span class=
                    "term"><code class="filename">liba52.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    provides functions for the programs dealing with ATSC
                    A/52 streams.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-18 14:50:03 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="id3lib.html" title="id3lib-3.8.3">Prev</a>
          <p>
            id3lib-3.8.3
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libao.html" title="Libao-1.2.0">Next</a>
          <p>
            Libao-1.2.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="libdriv.html" title=
          "Chapter&nbsp;42.&nbsp;Multimedia Libraries and Drivers">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
